package com.loan.market.base

import android.os.Bundle
import android.view.*
import androidx.viewbinding.ViewBinding

abstract class BaseBindingFragment<VB : ViewBinding>() : BaseFragment() {

    lateinit var binding: VB

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        binding = getViewBinding()
        return binding.root
    }

    abstract fun getViewBinding(): VB

}